<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="app.engine.solucoes.request.beans.*" errorPage="error.jsp"%>
	<jsp:useBean id="usuario" class="app.engine.solucoes.request.beans.Usuario" scope="session" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<script type="text/javascript" src="/javascript/script.js"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title><%=usuario.getNomeUsuario() != null ? usuario.getNomeUsuario() : ""%> - [Deletar FAQ]</title>
</head>
<body>
<%
	if (usuario.getId() == null)
		response.sendRedirect("/");
%>
	<form name="menu" action="faqtool" method="post">
		<input type="hidden" name="cmd" value="">
		<table border="1" align="center">
			<tr>
				<td>
				<table bgcolor="tan" border="0" align="center" cellpadding="10" cellspacing="0">
					<tr>
						<th colspan="2">Administração de FAQs: Suprime a FAQ</th>
					</tr>
					<tr>
						<td><b>ID:</b></td>
						<td><jsp:getProperty name="req" property="id" /></td>
					</tr>
					<tr>
						<td><b>Questão:</b></td>
						<td><jsp:getProperty name="req" property="question" /></td>
					</tr>
		
					<tr>
						<td><b>Resposta:</b></td>
						<td><jsp:getProperty name="req" property="answer" /></td>
					</tr>
					<tr>
						<td colspan="2" align="center"><input type="submit"
							value="Aborta supressão" onClick="document.menu.cmd.value='abort'">
						<input type="submit" value="Suprime esta FAQ"
							onClick="document.menu.cmd.value='do-delete'"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		<input type="hidden" name="token" value="<%= request.getAttribute("token") %>">
		<input type="hidden" name="id" value="<jsp:getProperty name="req" property="id" />">
	</form>
</body>
</html>
